/**
 * Coryright 2015-2020 www.eyaomall.cn
 * All rights reserved.
 * @author huwenqing
 * @date 2016年10月19日
 *
 */

package com.eyaomall.wxmall.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eyaomall.wxmall.dao.LogisticsDao;
import com.eyaomall.wxmall.model.po.Logistics;
import com.eyaomall.wxmall.service.LogisticsService;

@Service
public class LogisticsServiceImpl implements LogisticsService {

	@Autowired
	private LogisticsDao logisticsDao;

	/**
	 * 根据订单号查询对象
	 * 
	 * @param logId
	 * @return
	 */
	public Object queryByOrderId(Integer orderId) {

		return logisticsDao.query("queryByOrderId", orderId);
	}

	/**
	 * 更新物流信息
	 */
	public int update(Logistics logistics) {

		return logisticsDao.update(logistics);
	}

}
